package com.yuehuanghun.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

/**
 * 启动程序
 * 
 * @author yadmin
 */
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@ComponentScan(basePackages = {"com.yuehuanghun"})
@MapperScan(basePackages = {"com.yuehuanghun.**.mapper"})
@EnableAspectJAutoProxy(exposeProxy = true)
@EnableCaching
public class AdminApplication {
	private static Logger logger = LoggerFactory.getLogger("startup info");
	
    public static void main(String[] args) {
        // System.setProperty("spring.devtools.restart.enabled", "false");
        SpringApplication.run(AdminApplication.class, args);
        logger.info("---------!!!--启动完成--!!!---------");
    }
}
